package br.megareleased;

import javax.swing.text.MutableAttributeSet;
import javax.swing.text.html.HTML;
import javax.swing.text.html.HTMLEditorKit.ParserCallback;

public class MegaUploadLinkPage extends ParserCallback {

	public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos) {
		if (t == HTML.Tag.A) {
			if(a.getAttribute(HTML.Attribute.HREF) != null && a.getAttribute(HTML.Attribute.HREF).toString().toLowerCase().contains("www.megaupload")) {
			    System.out.println(a.getAttribute(HTML.Attribute.HREF).toString());
			}
		}
	}

}